/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package task01;

import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author tanhung
 */
public class Task01 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String str;
	int iNum;	
        //Nhap 1 ky tu tu trong ban phim
        System.out.println("Nhap mot ky tu so:");
        
        // Create a BufferedReader using System.in
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            str = br.readLine();            
            System.out.println("Nhap mot ky tu so:"+str);
            System.out.println("So ban dang nhap la:"+str);
            
            // chuyen tu ky tu sang so
            iNum = Integer.parseInt(str);
            iNum +=1; // tang gia tri len 1
            
            //Xuat gia tri ra ngoai man hinh
            System.out.println("Gia tri sau khi tang them 1:"+iNum);
            
        } catch (IOException ex) {
            Logger.getLogger(Task01.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
